package com.cc.visitor.controller;

import com.cc.alltype.ResponseResult;
import com.cc.visitor.entity.LogError;
import com.cc.visitor.service.LogErrorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author chanchaw
 * @create 2024-09-28 15:34
 */
@CrossOrigin
@RestController
@RequestMapping("/logError")
public class LogErrorController {
    @Autowired
    private LogErrorService service;
    @PostMapping("/insert")
    public ResponseResult insert(@RequestBody LogError record){
        return ResponseResult.ok(service.insert(record));
    }
}
